#ifndef MEM_POOL_H
#define MEM_POOL_H

#include <stdint.h>

struct mem_pool;
typedef struct mem_pool mem_pool_t;

mem_pool_t *	mem_pool_create(uint32_t elem_size,uint32_t elem_count);
void 	    	mem_pool_delete(mem_pool_t *mp);
void*		    mem_pool_alloc(mem_pool_t *mp);
void		    mem_pool_free(mem_pool_t *mp,void *mem);
	
#endif
